import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { OptionItem } from '@iux/live';

@Component({
  selector: 'app-size',
  templateUrl: './size.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SizeComponent implements OnInit {
  data1: OptionItem[];
  data2: OptionItem[];

  ngOnInit() {
    this.initData();
  }

  initData() {
    this.data1 = [
      { label: 'Option 1', isLeaf: true },
      { label: 'Option 2', isLeaf: true },
      { label: 'Option 3', isLeaf: true },
    ];
    this.data2 = [...this.data1];
  }
}
